<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Admin extends Authenticatable
{
    protected $guarded = [];

    public function setPasswordAttribute($v)
    {
    	$this->attributes['password'] = bcrypt($v);
    }
}
